(_list)[0] = (_list)[_id]; \
(unsigned short)_id; })
+#define DEBUG 1
+
#ifdef DEBUG
static char *be_state_name[] = {
[BEST_CLOSED] = "closed",
{
struct netfront_info *np = netdev_priv(dev);
np->user_state = UST_CLOSED;
- netif_stop_queue(np->netdev);
+ netif_stop_queue(dev);
return 0;
}
DPRINTK("netfront_closing: %s removed\n", dev->nodename);
- close_netdev(info);
-
xenbus_switch_state(dev, NULL, XenbusStateClosed);
}
findCommand "$@"
-if [ "$command" != "online" ] &&
- [ "$command" != "offline" ] &&
- [ "$command" != "add" ] &&
+if [ "$command" != "add" ] &&
[ "$command" != "remove" ]
then
log err "Invalid command: $command"